package com.ukefu.webim.service.repository;

import java.util.List;

import com.ukefu.webim.web.model.StatusEvent;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import com.ukefu.webim.web.model.Quality;

public abstract interface QualityRepository extends JpaRepository<Quality, String> {
	
	public abstract Quality findByIdAndOrgi(String id, String orgi);

	public List<Quality> findByOrgi(String orgi);
	
	public List<Quality> findByQualitytypeAndOrgi(String qualitytype,String orgi);
	//查询所有
	List<Quality> findAll(Specification<StatusEvent> spec, Pageable pageable);
	//根据分值查询质检记录score
	List<Quality> findByScore(int score);
}
